package com.zzh.dao;

import com.zzh.domain.PromotionAd;
import com.zzh.domain.PromotionAdVO;

import java.util.List;

public interface PromotionAdMapper {


    /**
     * 分页获取广告列表数据
     */
    public List<PromotionAd> findAllPromotionAdByPage();

    /**
     * 新建广告
     */
    public void savePromotionAd(PromotionAd promotionAd);

    /**
     * 修改广告
     */
    public void updatePromotionAd(PromotionAd promotionAd);

    /**
     * 根据id查询广告信息
     */
    public PromotionAd findPromotionAdById(int id);

    /**
     * 修改广告上下线状态
     */
    public void updatePromotionAdStatus(PromotionAd promotionAd);
}
